package com.ruoyi.equ.service.impl;


import com.ruoyi.equ.domain.EquColRetuDetail;
import com.ruoyi.equ.mapper.EquColRetuDetailMapper;
import com.ruoyi.equ.service.IEquColRetuDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 设备领用归还明细信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-16
 */
@Service
public class EquColRetuDetailServiceImpl implements IEquColRetuDetailService
{
    @Autowired(required = false)
    private EquColRetuDetailMapper equColRetuDetailMapper;

    /**
     * 查询设备领用归还明细信息
     * 
     * @param id 设备领用归还明细信息ID
     * @return 设备领用归还明细信息
     */
    @Override
    public EquColRetuDetail selectEquColRetuDetailById(String id)
    {
        return equColRetuDetailMapper.selectEquColRetuDetailById(id);
    }

    /**
     * 查询设备领用归还明细信息列表
     * 
     * @param equColRetuDetail 设备领用归还明细信息
     * @return 设备领用归还明细信息
     */
    @Override
    public List<EquColRetuDetail> selectEquColRetuDetailList(EquColRetuDetail equColRetuDetail)
    {
        return equColRetuDetailMapper.selectEquColRetuDetailList(equColRetuDetail);
    }

    /**
     * 新增设备领用归还明细信息
     * 
     * @param equColRetuDetail 设备领用归还明细信息
     * @return 结果
     */
    @Override
    public int insertEquColRetuDetail(EquColRetuDetail equColRetuDetail)
    {
        return equColRetuDetailMapper.insertEquColRetuDetail(equColRetuDetail);
    }

    /**
     * 修改设备领用归还明细信息
     * 
     * @param equColRetuDetail 设备领用归还明细信息
     * @return 结果
     */
    @Override
    public int updateEquColRetuDetail(EquColRetuDetail equColRetuDetail)
    {
        return equColRetuDetailMapper.updateEquColRetuDetail(equColRetuDetail);
    }

    /**
     * 批量删除设备领用归还明细信息
     * 
     * @param ids 需要删除的设备领用归还明细信息ID
     * @return 结果
     */
    @Override
    public int deleteEquColRetuDetailByIds(String[] ids)
    {
        return equColRetuDetailMapper.deleteEquColRetuDetailByIds(ids);
    }

    /**
     * 删除设备领用归还明细信息信息
     * 
     * @param id 设备领用归还明细信息ID
     * @return 结果
     */
    @Override
    public int deleteEquColRetuDetailById(String id)
    {
        return equColRetuDetailMapper.deleteEquColRetuDetailById(id);
    }
}
